;(function () {
  'use strict';
  angular.module('controllers.userBehaviorAnalysis.userChurnAnalysis')
    .controller('userChurnRateAnalysisCtrl', userChurnRateAnalysisCtrl);

  function userChurnRateAnalysisCtrl($scope, CoreService,userChurnRateAnalysisService,$mdDialog,COREDATA) {
    $scope.userChurnRateAnalysis = userChurnRateAnalysisService;
    userChurnRateAnalysisService.initfn();
    $scope.exportUrl = COREDATA.FORMPREFIX + 'analysisUserBehavior/userChurnRate/churnRateExport';
    $scope.$on('$stateChangeSuccess', function(evt, state) {
      userChurnRateAnalysisService.reset();
      $mdDialog.hide();
    });
  }
  userChurnRateAnalysisCtrl.$inject = ['$scope','CoreService','userChurnRateAnalysisService','$mdDialog','COREDATA'];
})();